package com.tiyende.credit.loop.utils.track;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 埋点数据实体
 */
@Entity(tableName = "track_points")
public class TrackPoint {

    @PrimaryKey(autoGenerate = true)
    public long id;

    @NonNull
    public String type;        // 埋点类型
    @NonNull
    public String remark;      // 备注信息
    public long timestamp;     // 时间戳
    public int status;         // 0:未上报 1:已上报

    public TrackPoint(@NonNull String type, @NonNull String remark, long timestamp) {
        this.type = type;
        this.remark = remark;
        this.timestamp = timestamp;
        this.status = 0;
    }
}
